import 'package:flutter/material.dart';
import 'package:webview_all/webview_all.dart';
import 'package:window_example/interface/content_page.dart';

class WebViewContent extends ContentPage {
  const WebViewContent() : super();

  @override
  Widget getContent() {
    return const WebViewPage();
  }
}

class WebViewPage extends StatefulWidget {
  const WebViewPage({super.key});

  @override
  State<WebViewPage> createState() => _WebViewState();
}

class _WebViewState extends State<WebViewPage> {
  // WebViewController webViewController = WebViewController();

  @override
  void initState() {
    super.initState();
    // webViewController.init(
    //   context: context,
    //   setState: setState,
    //   uri: Uri.parse("https://www.baidu.com/"),
    // );
  }

  @override
  Widget build(BuildContext context) {
    return const Text("https://www.baidu.com/");
    return const Webview(url: "https://www.baidu.com/");
  }
}
